//短字符串在长字符串中出现
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int IsAllCharExist(char* pShortString, char* pLongString) {
  int len_short = strlen(pShortString);
  int len_long = strlen(pLongString);
  int hash_table[128] = {0};
  int count = 0;
  for (int i = 0; i < len_long; i++) {
    hash_table[pLongString[i]] = 1;
  }
  for (int i = 0; i < len_short; i++) {
    if (hash_table[pShortString[i]]) count++;
  }
  if (count == len_short)
    return 1;
  else
    return 0;
}
int main() {
  char str_short[50] = {'\0'}, str_long[200] = {'\0'};
  while (gets(str_short)) {
    gets(str_long);
    int flag = IsAllCharExist(str_short, str_long);
    if (flag)
      printf("true\n");
    else
      printf("false\n");
  }
  return 0;
}